package com.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
<<<<<<< HEAD
 * @author cxy
 * @since 2023-10-11 21:58:42
=======
 * @author cc
 * @since 2023-10-11 21:57:48
>>>>>>> a45ef284ff029011b55ef4d830c2b996023ef30c
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_author")
public class Author implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("salt")
    private String salt;

    @TableField("sex")
    private String sex;

    @TableField("address")
    private String address;

    @TableField("telephone")
    private Integer telephone;

    /**
     * 1不是 2是
     */
    @TableField("contract")
    private String contract;

    @TableField("creat_time")
    private LocalDate creatTime;

    /**
     * 是否封禁 1不是 2是
     */
    @TableField("status")
    private String status;

    @TableField("attr1")
    private Integer attr1;

    @TableField("attr2")
    private Integer attr2;

    @TableField("attr3")
    private String attr3;

    @TableField("attr4")
    private String attr4;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String USERNAME = "username";

    public static final String PASSWORD = "password";

    public static final String SALT = "salt";

    public static final String SEX = "sex";

    public static final String ADDRESS = "address";

    public static final String TELEPHONE = "telephone";

    public static final String CONTRACT = "contract";

    public static final String CREAT_TIME = "creat_time";

    public static final String STATUS = "status";

    public static final String ATTR1 = "attr1";

    public static final String ATTR2 = "attr2";

    public static final String ATTR3 = "attr3";

    public static final String ATTR4 = "attr4";

}
